package logic;

public class NormalCell implements Cell{
	
	private Piece piece;
	private boolean hasPiece;

	public NormalCell(){
		piece = null;
		hasPiece = false;
	}
	
	@Override
	public Team cellOwner() {
		return Team.NOTEAM;
	}

	@Override
	public Piece getPiece() {
		return piece;
	}

	@Override
	public boolean hasPiece() {
		return hasPiece;
	}

	@Override
	public boolean putPiece(Piece piece) {
		if(hasPiece) return false;
		this.piece = piece;
		this.hasPiece = true;
		return true;
	}

	@Override
	public void removePiece() {
		this.piece = null;
		this.hasPiece = false;
	}

}
